CC=gcc
#CFLAGS=-c `pkg-config --cflags bullet` -O3 -DNDEBUG -funroll-loops -fomit-frame-pointer -ftree-vectorize -finline-functions -ftree-vect-loop-version -ftree-loop-optimize -ffast-math -fno-rtti -fno-exceptions
#LDFLAGS=`pkg-config --libs bullet` -lpthread -lGL -lGLU -lglut -O3 -DNDEBUG -funroll-loops -fomit-frame-pointer -ftree-vectorize -finline-functions -ftree-vect-loop-version -ftree-loop-optimize -ffast-math -fno-rtti -fno-exceptions
CFLAGS=-c `pkg-config --cflags bullet` -O3
LDFLAGS=`pkg-config --libs bullet` -lpthread -lGL -lGLU -lglut -O3 
SOURCES=DemoApplication.cpp GLDebugDrawer.cpp GLDebugFont.cpp GL_ShapeDrawer.cpp GlutDemoApplication.cpp GlutStuff.cpp SOIL_src/libSOIL.a foo.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=foo

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@
